/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.stylefeng.guns.modular.grape.enums;

/**
 *
 * @author wmao
 */
public enum StatusEnum {
    VALID("valid", 0), INVALID("invalid", 1), DELETED("deleted", 2);
    private final String name;
    
    private final int idx;

    StatusEnum(String name, int idx) {
        this.name = name;
        this.idx = idx;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the idx
     */
    public int getIdx() {
        return idx;
    }
}
